<!DOCTYPE html>
<%@page pageEncoding="UTF-8" contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="EF" uri="/WEB-INF/framework/tlds/EF-2.0.tld" %>
<%
	String actionUrl = request.getContextPath() + "/DispatchAction.do";
%>
<%@page import="com.baosight.iplat4j.core.resource.I18nMessages"%>
<html>
<EF:EFHead includeDefault="true">
<script type="text/javascript" src="./ZM/zm.js"></script>

</EF:EFHead>
<EF:EFBody>
	<EF:EFForm formId="ZMCB02" method="POST" action="<%=actionUrl%>"> 
	<%
	String path1 = request.getContextPath() + "/DispatchAction.do?efFormEname=ZMCB05&methodName=query";
	
%>
		<EF:EFInput type="hidden" ename="fdMineId" cname="所属矿井ID"/>
		<EF:EFInput type="hidden" ename="fdParentId" cname="所属矿井ID"/>
		<EF:EFInput type="hidden" ename="fdParentType" cname="所属矿井类别"/>  
		<div id="ef_tab_y" lastRange="98%" eftabWidth="100%" style="overflow: hidden;border-width:0px;padding:0px">
			<div id="country" title="&nbsp;&nbsp;水&nbsp;&nbsp;平&nbsp;&nbsp;" efRemember="no" >
				<div id="ef_region_result"  style="overflow: scroll;">
					<div id="ef_grid_result" title="页面信息"></div>
				</div>
			</div>
			<div id="tab1" title="&nbsp;&nbsp;巷&nbsp;&nbsp;道&nbsp;&nbsp;" eftabSrc="about:blank" efRemember="yes" style="border:0px;padding:0px">
		</div>
		</div> 
		
		<EF:EFRegion />  
        <EF:EFGrid blockId="result" paintId="ef_grid_result" serviceName="ZMCB02" queryMethod="query"  autoDraw="no" readonly="false" ajax="true">      
			<EF:EFColumn ename="fdKeyId" cname="主键" visible="false"></EF:EFColumn>
			<EF:EFColumn ename="fdMineId" cname="所属主键"  visible="false"></EF:EFColumn>
			<EF:EFColumn ename="fdNo" cname="*水平编号" validateRegex="/^[a-zA-Z0-9]{1,10}$/" validateErrorPrompt="输入1-10个字母或数字" nullable="false"></EF:EFColumn>
			<EF:EFColumn ename="fdName" cname="*水平名称" validateRegex="/^\S{1,30}$/" validateErrorPrompt="输入1-30个字符" nullable="false" width="300"></EF:EFColumn>
			<EF:EFColumn ename="fdElevation" cname="*标高" validateRegex="/^-?\d{1,5}$/" validateErrorPrompt="输入长度不超过5位(-除外)的整数"  nullable="false"></EF:EFColumn>
			<EF:EFComboColumn ename="fdIsFirst" cname="*是否第一水平" blockName="cmes.cb.IsFirstH" labelProperty="value" valueProperty="value"  nullable="false"></EF:EFComboColumn>
        </EF:EFGrid>
        
		<EF:EFTab tabId="y" action="fundiv"/> 
		<script type="text/javascript">
var path = [];
path.push("AAA");
path.push("<%=path1%>");
var frames = $("#ef_tab_y iframe");
if(window.parent != window && window.parent.hideSubPageHead == true) {
	$("#ef_tab_y").css("padding-top", "8px").css("padding-left", "4px");
}
onSubPageLoad = function(wnd) {
	for(var i=0; i<frames.length; i++) {
		if (frames[i].contentWindow == wnd) {
			adjustFrameHeight(frames[i]);
			break;
		}
	}
}
adjustFrameHeight = function(frame) {
	var oldHeight = $(frame).height();
	$(frame).css("border", "0");
	//getElementById('jquery_tab_div_content').style.border = "0px";
	$("#jquery_tab_div_content").css("border", "0");
	var height = frame.contentWindow.document.body.scrollHeight;
	if (height > oldHeight) {
		$(frame).css("height", height);
	}
	if(window.parent != window && window.parent.hideSubPageHead == true) {
		var pFrames = window.parent.frames;
		for(var i=0; i<pFrames.length; i++) {
			if (pFrames[i].contentWindow == window) {
				window.parent.adjustFrameHeight(pFrames[i]);
				break;
			}
		}
	}
}
</script>

	</EF:EFForm> 
</EF:EFBody> 
</html>